package com.softserveinc.data;

public class BrowseSettings {

	private int listSize;
	private String listType;

	public BrowseSettings() {
	}

	public BrowseSettings(final int listSize, final String listType) {
		this.listSize = listSize;
		this.listType = listType;
	}

	public int getListSize() {
		return listSize;
	}

	public void setListSize(final int listSize) {
		this.listSize = listSize;
	}

	public String getListType() {
		return listType;
	}

	public void setListType(final String listType) {
		this.listType = listType;
	}

	@Override
	public boolean equals(final Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		BrowseSettings other = (BrowseSettings) obj;
		if (listSize != other.listSize) {
			return false;
		}
		if (listType == null) {
			if (other.listType != null) {
				return false;
			}
		} else if (!listType.equals(other.listType)) {
			return false;
		}
		return true;
	}

	@Override
	public String toString() {
		return "BrowseSettings [listSize=" + listSize + ", listType="
				+ listType + "]";
	}
}
